package pyx.crazycards.game.managers;

import pyx.crazycards.game.managers.annotation.DataObject;
import pyx.crazycards.game.managers.annotation.Propertie;
import pyx.crazycards.game.managers.persistence.Persistable;

@DataObject(name = "game", base = "crazy.cards.game")
public class Game extends Persistable {
	
	@Propertie(name="name")
	private String name;
	
	@Propertie(name="active")
	private Boolean active;
	
	@Propertie(name="owner")
	private GameClient owner;
	
	@Propertie(name="challenger")
	private GameClient challenger;

	public Boolean getActive() {
		return active;
	}

	public void setActive(Boolean active) {
		this.active = active;
	}

	public GameClient getOwner() {
		return owner;
	}

	public void setOwner(GameClient owner) {
		this.owner = owner;
	}

	public GameClient getChallenger() {
		return challenger;
	}

	public void setChallenger(GameClient challenger) {
		this.challenger = challenger;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
}
